import request from '@/utils/request'

// 查询通知接收列表
export function listNoticeReceive(query) {
  return request({
    url: '/training/noticeReceive/list',
    method: 'get',
    params: query
  })
}

// 查询通知接收详细
export function getNoticeReceive(noticeReceiveId) {
  return request({
    url: '/training/noticeReceive/' + noticeReceiveId,
    method: 'get'
  })
}

// 新增通知接收
export function addNoticeReceive(data) {
  return request({
    url: '/training/noticeReceive',
    method: 'post',
    data: data
  })
}

// 修改通知接收
export function updateNoticeReceive(data) {
  return request({
    url: '/training/noticeReceive',
    method: 'put',
    data: data
  })
}

// 删除通知接收
export function delNoticeReceive(noticeReceiveId) {
  return request({
    url: '/training/noticeReceive/' + noticeReceiveId,
    method: 'delete'
  })
}

// 学员查询门户班级通知接收列表
export function listByStudentIdAndClassId(query) {
  return request({
    url: '/training/noticeReceive/listByStudentIdAndClassId',
    method: 'get',
    params: query
  })
}
